package com.yuxi.Dao.Impl;

import java.io.Serializable;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.yuxi.Dao.ConferenceRecordDao;
import com.yuxi.Entity.ConferenceRecord;
import com.yuxi.Request.Page;

@Repository
public class ConferenceRecordDaoImpl extends BaseDaoImpl<Serializable, Serializable> implements ConferenceRecordDao {

	private Logger logger=LoggerFactory.getLogger(ConferenceRecordDaoImpl.class);
	public ConferenceRecordDaoImpl(){
		super(ConferenceRecord.class);
	}
	
	@Override
	public ConferenceRecord getRecord(Integer cRecordId) {
		// TODO Auto-generated method stub
		return (ConferenceRecord) super.get(cRecordId);
	}

	@Override
	public ConferenceRecord addRecord(ConferenceRecord cRecord) {
		// TODO Auto-generated method stub
		return (ConferenceRecord) super.addAndReturn(cRecord);
	}

	@Override
	public void deleteRecord(ConferenceRecord cRecord) {
		// TODO Auto-generated method stub
		super.delete(cRecord);
	}

	@Override
	public void modifly(ConferenceRecord cRecord) {
		// TODO Auto-generated method stub
		super.update(cRecord);
	}

	@Override
	public Page<ConferenceRecord> getConferenceRecordAll(Page p) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ConferenceRecord getRecordByinfoId(Integer infoId) {
		// TODO Auto-generated method stub
		return (ConferenceRecord) super.find("from ConferenceRecord where infoId=?", infoId).get(0);
	}

}
